//
//  UIView+WDExtention.h
//  MyDemos
//
//  Created by iMac on 2018/3/14.
//  Copyright © 2018年 iMac. All rights reserved.
//

#import <UIKit/UIKit.h>



#define View() [[UIView alloc] init]
@interface UIView (WDExtention)

@property (nonatomic, copy) void(^tapCallback)(UIView *);

/// set frame
- (UIView *(^)(CGRect))sFrame;

/// set background color
- (UIView *(^)(UIColor *))sBGColor;

/// add subview
- (UIView *(^)(UIView *))aSubView;

/// tap gesture
- (void)tap:(void(^)(UIView *view))callback;

@end
